import java.util.Scanner;

public class test09 {

    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);
        System.out.println("请输入长度大于五的字符串");
        String s = sc.nextLine();
        char[] chars = s.toCharArray();
        int count =0;
        for (int i = 0; i <chars.length; i++) {
            if (chars.length-i>=4){
                for (int j = i; j <chars.length ; j++) {
                     count++;
                     if (count<=4){
                         System.out.println(chars[j]);
                     }
                }

            }
        }
    }
}
